﻿@model IEnumerable<DLM.Domain.Model.Party>
@{
    ViewBag.Title = "List";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@using Webdiyer.WebControls.Mvc;
<div class="main meetting_list">
    <div class="main_tab">
        <div class="main_tab_title">
            <ul>
                <li class="current"><span>单身男女聚会活动</span></li>
                <li><span>纯体育活动</span></li>
                <li><span>老乡活动</span></li>
                <li><span>其他活动</span></li>
            </ul>
            <div class="more_operate">
                小三角</div>
        </div>
        <div class="main_tab_box">
            <div class="act_list">
                <div class="act_header clearfix">
                    <a href="creat_act.html" class="creat_act"></a>
                    <div class="more">
                        <a href="#"></a>
                    </div>
                </div>
                <div id="divList" class="act_content_wrap">
                    <div class="act_content">
                        <ul class="clearfix">
                            @foreach (var item in Model)
                            {
                                <li class="clearfix">
                                    <div class="pic">
                                        <a href="@Url.Action("View", "Party")">
                                            <img width="70px" height="90px" src="@Url.Content("~/Files/Party/" + item.PhotoUrl)" alt="user pic" /></a></div>
                                    <div class="info">
                                        <h5>
                                            <a href="@Url.Action("View", "Party")">@item.Subject</a></h5>
                                        <p>
                                            <a href="@Url.Action("View", "Party")">@item.PartyDate<br />
                                                活动地点：暂时保密</a></p>
                                    </div>
                                </li>
                            }
                        </ul>


                        @Html.Pager(Model as PagedList<DLM.Domain.Model.Party>, new PagerOptions
                        {
                               PageIndexParameterName = "page",
                            CurrentPagerItemWrapperFormatString = "<span class=\"current\">{0}</span>",
                            NumericPagerItemWrapperFormatString = "<a>{0}</a>",
                            PrevPageText = "<",
                            NextPageText = ">",
                            ShowNumericPagerItems = true,
                            ShowFirstLast = false,
                            ShowPrevNext = true,
                            CssClass = "scott",
                            MorePageText = "...",
                            SeparatorHtml = "",
                            PageIndexBoxWrapperFormatString = "跳转到第{0}页"
                        })
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
